package com.heima.admin;
 
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication//表明这是一个Spring Boot应用的入口类，具备自动配置和组件扫描的功能
@MapperScan("com.heima.admin.mapper")//指定MyBatis Mapper接口的扫描路径，使得这些Mapper接口可以被MyBatis自动发现和注入
@EnableDiscoveryClient//启用服务发现功能，允许该应用作为注册服务或者发现其他服务
public class AdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
    }
}